package week05.necessary.ioc.xml;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author yky
 * @since 2021/7/27 09:03
 */
public class XmlApplicationContextStartup {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");

        XmlBean01 xmlBean01 = context.getBean(XmlBean01.class);
        System.out.println(xmlBean01.getName());
        System.out.println(xmlBean01.getAge());
    }
}
